<?php

return [
    'components' => [
        'db' => [
            'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=localhost;dbname=hedong',
            'username' => 'hedong',
            'password' => 'KrNhiXLPbwFAY8NG',
            'charset' => 'utf8mb4',
            'tablePrefix' => 'st_',
            'enableSchemaCache' => true,
            'schemaCacheDuration' => 3600,
        ],
        //系统加密
        'security' => [
            'public_key' => 'ZDwJ662qLL&#$N&C',
            'secret_key' => md5('key'),
        ],
        //阿里OSS
        'alioss' => [
            'accessKeyId' => '',
            'accessKeySecret' => '',
            'endpoint' => 'http://oss-cn-hangzhou.aliyuncs.com',
            'bucket' => 'stcor',
            'host' => 'http://lntsv.oss-cn-hangzhou.aliyuncs.com',
        ],
        //阿里RAM
        'alists' => [
            'accessKeyId' => '',
            'accessKeySecret' => '',
            'endpoint' => 'https://oss-cn-hangzhou.aliyuncs.com',
            'bucket' => 'stcor',
            'host' => 'http://lntsv.oss-cn-hangzhou.aliyuncs.com',
            'roleArn' => 'acs:ram::2460571939801402:role/oss',
        ],
        //微信小程序
        'wechatMp' => [
            'class' => 'common\components\wechat\MpWechat',
            'appId' => 'wx93e8420343b7efae',
            'appSecret' => '2ffc0938c2c60a3a949516e486339e93',
            'token' => 'bhhV8ET3fQe1YWyVXUJWxt1VXeny11Yu',
            'encodingAesKey' => 'FHYQYuxx8dPWdltxQn801PpHeZWxzfV3HYJzVnqWxhf',
        ],
    ],
];
